Optimal. Leaf size=103 \[ -\frac{(-a B e-A b e+2 b B d) \tanh ^{-1}\left (\frac{\sqrt{b} \sqrt{d+e x}}{\sqrt{b d-a e}}\right )}{b^{3/2} (b d-a e)^{3/2}}-\frac{\sqrt{d+e x} (A b-a B)}{b (a+b x) (b d-a e)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0953529, antiderivative size = 103, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 33, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.121, Rules used = {27, 78, 63, 208} \[ -\frac{(-a B e-A b e+2 b B d) \tanh ^{-1}\left (\frac{\sqrt{b} \sqrt{d+e x}}{\sqrt{b d-a e}}\right )}{b^{3/2} (b d-a e)^{3/2}}-\frac{\sqrt{d+e x} (A b-a B)}{b (a+b x) (b d-a e)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 27
Rule 78
Rule 63
Rule 208
Rubi steps
\begin{align*} \int \frac{A+B x}{\sqrt{d+e x} \left (a^2+2 a b x+b^2 x^2\right )} \, dx &=\int \frac{A+B x}{(a+b x)^2 \sqrt{d+e x}} \, dx\\ &=-\frac{(A b-a B) \sqrt{d+e x}}{b (b d-a e) (a+b x)}+\frac{(2 b B d-A b e-a B e) \int \frac{1}{(a+b x) \sqrt{d+e x}} \, dx}{2 b (b d-a e)}\\ &=-\frac{(A b-a B) \sqrt{d+e x}}{b (b d-a e) (a+b x)}+\frac{(2 b B d-A b e-a B e) \operatorname{Subst}\left (\int \frac{1}{a-\frac{b d}{e}+\frac{b x^2}{e}} \, dx,x,\sqrt{d+e x}\right )}{b e (b d-a e)}\\ &=-\frac{(A b-a B) \sqrt{d+e x}}{b (b d-a e) (a+b x)}-\frac{(2 b B d-A b e-a B e) \tanh ^{-1}\left (\frac{\sqrt{b} \sqrt{d+e x}}{\sqrt{b d-a e}}\right )}{b^{3/2} (b d-a e)^{3/2}}\\ \end{align*}
Mathematica [A] time = 0.0821406, size = 102, normalized size = 0.99 \[ \frac{\sqrt{d+e x} (a B-A b)}{b (a+b x) (b d-a e)}-\frac{(-a B e-A b e+2 b B d) \tanh ^{-1}\left (\frac{\sqrt{b} \sqrt{d+e x}}{\sqrt{b d-a e}}\right )}{b^{3/2} (b d-a e)^{3/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.016, size = 195, normalized size = 1.9 \begin{align*}{\frac{ \left ( Ab-aB \right ) e}{ \left ( ae-bd \right ) b \left ( b \left ( ex+d \right ) +ae-bd \right ) }\sqrt{ex+d}}+{\frac{Ae}{ae-bd}\arctan \left ({b\sqrt{ex+d}{\frac{1}{\sqrt{ \left ( ae-bd \right ) b}}}} \right ){\frac{1}{\sqrt{ \left ( ae-bd \right ) b}}}}+{\frac{aBe}{ \left ( ae-bd \right ) b}\arctan \left ({b\sqrt{ex+d}{\frac{1}{\sqrt{ \left ( ae-bd \right ) b}}}} \right ){\frac{1}{\sqrt{ \left ( ae-bd \right ) b}}}}-2\,{\frac{Bd}{ \left ( ae-bd \right ) \sqrt{ \left ( ae-bd \right ) b}}\arctan \left ({\frac{\sqrt{ex+d}b}{\sqrt{ \left ( ae-bd \right ) b}}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.42362, size = 833, normalized size = 8.09 \begin{align*} \left [\frac{{\left (2 \, B a b d -{\left (B a^{2} + A a b\right )} e +{\left (2 \, B b^{2} d -{\left (B a b + A b^{2}\right )} e\right )} x\right )} \sqrt{b^{2} d - a b e} \log \left (\frac{b e x + 2 \, b d - a e - 2 \, \sqrt{b^{2} d - a b e} \sqrt{e x + d}}{b x + a}\right ) + 2 \,{\left ({\left (B a b^{2} - A b^{3}\right )} d -{\left (B a^{2} b - A a b^{2}\right )} e\right )} \sqrt{e x + d}}{2 \,{\left (a b^{4} d^{2} - 2 \, a^{2} b^{3} d e + a^{3} b^{2} e^{2} +{\left (b^{5} d^{2} - 2 \, a b^{4} d e + a^{2} b^{3} e^{2}\right )} x\right )}}, \frac{{\left (2 \, B a b d -{\left (B a^{2} + A a b\right )} e +{\left (2 \, B b^{2} d -{\left (B a b + A b^{2}\right )} e\right )} x\right )} \sqrt{-b^{2} d + a b e} \arctan \left (\frac{\sqrt{-b^{2} d + a b e} \sqrt{e x + d}}{b e x + b d}\right ) +{\left ({\left (B a b^{2} - A b^{3}\right )} d -{\left (B a^{2} b - A a b^{2}\right )} e\right )} \sqrt{e x + d}}{a b^{4} d^{2} - 2 \, a^{2} b^{3} d e + a^{3} b^{2} e^{2} +{\left (b^{5} d^{2} - 2 \, a b^{4} d e + a^{2} b^{3} e^{2}\right )} x}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{A + B x}{\left (a + b x\right )^{2} \sqrt{d + e x}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.14629, size = 182, normalized size = 1.77 \begin{align*} \frac{{\left (2 \, B b d - B a e - A b e\right )} \arctan \left (\frac{\sqrt{x e + d} b}{\sqrt{-b^{2} d + a b e}}\right )}{{\left (b^{2} d - a b e\right )} \sqrt{-b^{2} d + a b e}} + \frac{\sqrt{x e + d} B a e - \sqrt{x e + d} A b e}{{\left (b^{2} d - a b e\right )}{\left ({\left (x e + d\right )} b - b d + a e\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]